<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>OXEditor</title>
<link rel="stylesheet" type="text/css" media="screen" href="css/jquery.oxeditor.css" />
<link rel="stylesheet" type="text/css" media="screen" href="css/jquery.debug.css" />
<link rel="stylesheet" href="css/farbtastic/farbtastic.css" type="text/css" />
<script type="text/javascript" src="css/jquery.js"></script>
<script type="text/javascript" src="css/jquery.oxeditor.js"></script>
<script type="text/javascript" src="css/jquery.oxeditor.zh.js"></script>
<script type="text/javascript" src="css/farbtastic.js"></script>
<script type="text/javascript"><!--
var editor;
var farbtastic;
$(document).ready(function() {
	try{
		var editors=$("#editable").oxeditor();
		editor=editors[0];
		var panels=editor.panels;
		farbtastic=$("#backcolorpicker").farbtastic();
		farbtastic=farbtastic.get(0);
	}catch(e){
		alert(e.name+" "+e.message);
	}
});
--></script>
</head>
<body>
<div id="debug" style="display: none;"></div>
<textarea id="editable"></textarea>
<input type="button" value="提交" onclick="alert(editor.oxhtml());" /><br><br><br>
<div id="backcolorpicker" style="position: absolute;display: none;"></div>
</body>
</html>
